package com.hktf.moedokilock.fragment;


import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.hktf.corelib.utils.UIUtils;
import com.hktf.uilib.utils.DlgUtils;

/**
 * date: 2021/4/15 17:18.
 *
 * @auther: hexw
 * @function:
 */
public class BaseFragment extends Fragment {

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }
    public void showInfoDlg(String msg, DlgUtils.MyListener listener){
        DlgUtils.showDlgNew(getContext(),null,msg,
                UIUtils.getString(com.hktf.uilib.R.string.ok),
                null,listener);
    }
    public void showLoadingSend() {
        DlgUtils.showLoadingSend(getContext());
    }
    public void showLoadingGet() {
        DlgUtils.showLoadingGet(getContext());
    }

    public void showLoadingDlg(String msg) {
        DlgUtils.showLoading(getContext(), msg, false, null);
    }
}
